package com.hx.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {
    private Integer id;
    private  String  name;
    private String password;
    private  String  gender;
    private  String  phone;
    private  Integer  salary;
    private  String  address;
    private Integer deptId;
    private Department department;

    public Employee(Integer id, String name, String password, String gender, String phone, Integer salary, String address, Integer deptId) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.gender = gender;
        this.phone = phone;
        this.salary = salary;
        this.address = address;
        this.deptId = deptId;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", gender='" + gender + '\'' +
                ", phone='" + phone + '\'' +
                ", salary='" + salary + '\'' +
                ", address='" + address + '\'' +
                ", deptId=" + deptId +
                '}';
    }
}
